angular.module('U9ImPDA.services')

.factory('Auth', function() {
    var o = {};

    var _isAuth = false,
        _token = '';

    o.setAuth = function (isAuth, token) {
        _isAuth = isAuth;
        _token = token ? token : '';
    };
    o.isAuth= function () {
        return _isAuth;
    };
    o.getToken = function () {
        return _token;
    };

    return o;
});
